]> dgit.raspbian.org Git - gnome-shell.git/commit
st/private: Multiply position in fb coordinates with resource scale
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 26 Jul 2020 11:26:20 +0000 (13:26 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 3 Aug 2020 21:57:50 +0000 (21:57 +0000)
commit18155fc6ea9cbc7e414314c82940459f4a157b25
tree12baff641cecff74ca1f7e359481253bccd4cd30
parentb83c93ad62a73a851a88c8f83b48fdce93ad9f80
st/private: Multiply position in fb coordinates with resource scale

The framebuffer we use for rendering shadows is scaled by the resource
scale, that means we also need to offset coordinates when translating
them to the framebuffers coordinate system.

So far we forgot to do that when translating the framebuffer using the
position of the actor, which lead to small rendering bugs of
text-shadows for actors allocated at non-zero origins. To fix that,
simply multiply those positions with the actors resource scale.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1390
src/st/st-private.c